/*
 * @Author: Dorange.Wang
 * @Date: 2021-07-09 15:55:52
 * @LastEditors: your name
 * @LastEditTime: 2021-07-16 09:23:06
 * @Description: file content
 */

import Vue from 'vue'
import Template from './DateTime'

class Select {
  constructor () {
    this.instance = null
  }

  static _init () {
    if (!this.instance) {
      const Profile  = Vue.extend(Template)
      this.instance = new Profile({
        el: document.createElement('div')
      })
      document.body.appendChild(this.instance.$el)
    }
  }
  
  static init (...arg) {
    this._init()
    return this.instance.init(...arg)
  }
}

export default Select
